﻿using System.ComponentModel;

namespace Test.Api.Models
{
    /// <summary>
    /// 天气
    /// </summary>
    public class WeatherForecast
    {
        /// <summary>
        /// 现在
        /// </summary>
        public DateTime NowTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? Date { get; set; } = null;
        /// <summary>
        /// 摄氏度
        /// </summary>
        public int? TemperatureC { get; set; } = null;
        /// <summary>
        /// 华氏摄氏度
        /// </summary>
        public long? TemperatureF { get; set; } = null;
        /// <summary>
        /// 总结
        /// </summary>
        public string? Summary { get; set; } = "v2";
    }
    /// <summary>
    /// 枚举
    /// </summary>
    public enum EnumType
    {
        /// <summary>
        /// 可用
        /// </summary>
        [Description("可用")]
        Able,
        /// <summary>
        /// 不可用
        /// </summary>
        [Description("不可用")]
        UnAble
    }

    /// <summary>
    /// 枚举Model
    /// </summary>
    public class EnumModel
    {
        /// <summary>
        /// EnumType类型
        /// </summary>
        public EnumType EnumType { get; set; }
    }
}
